package com.ruoyi.web.controller.aj;

import com.ruoyi.aj.domain.Case_law;
import com.ruoyi.aj.service.HrempService;
import com.ruoyi.aj.service.ICaseExamservice;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;


@RestController
@RequestMapping("/caseAll")
@DataSource(DataSourceType.SLAVE)
public class CaseAllcontroller {

    @Autowired
    private HrempService hrempService;


    @Autowired
    private ICaseExamservice examservice;


    @GetMapping("/allsel")
    public Object allsel(){
        List<Object> list=new ArrayList<>();
        list.add(hrempService.list());
        list.add(examservice.list());
        return list;
    }
    @GetMapping("/layl")
    public Object layl(String caseNo){
        return examservice.list01(caseNo);
    }




}
